import {designPage} from "@peryl/react-compose";
import {PPTEditor} from "../../packages";
import {usePPTOption} from "../modules/ppt/usePPTOption";

export default designPage(() => {

  const pptOption = usePPTOption({});

  pptOption.state.utils.loadExampleData().then((data) => {
    console.log(data);
  });

  return () => (
    <div style={{ height: '100vh', width: '100%' }}>
      <PPTEditor option={pptOption}/>
    </div>
  );
});
